import request from "@/utils/request";

// 查询筛选条件字段
export function filterList(data) {
  return request({
    url: "/filter/condition/list",
    method: "GET",
    data,
  });
}

// 查询筛选条件下选项值
export function filterlistVals(data) {
  return request({
    url: "/filter/condition/listVals",
    method: "POST",
    data,
  });
}

// 根据筛选条件分页查询专利数据
export function filterPageList(data) {
  return request({
    url: "/patent/pageList",
    method: "POST",
    data,
  });
}

// 绑定专利到分析数据集
export function bindPatent(data) {
  return request({
    url: "/analysis/dataset/bindPatent",
    method: "POST",
    data,
  });
}

// 查询分析数据集是否可以编辑
export function getDataset(data) {
  return request({
    url: "/analysis/dataset/" + data,
    method: "GET",
  });
}
